package javaBean;

//操作类
public class StudentOperator {
    private Student student;

    public StudentOperator(Student student) {
        this.student = student;
    }

    public void printPass() {
        if (student.score > 60) {
            System.out.println(student.getName() + "及格");
        } else {
            System.out.println(student.getName() + "不及格");
        }
    }

}
